//
//  ElbowJoint.m
//  pogostick
//
//  Created by daddy on 9/4/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "ElbowJoint.h"


@implementation ElbowJoint

-(id)initInSpace:(cpSpace *)sp armUBody:(cpBody *)aub armLBody:(cpBody *)alb
{
	if (self = [super init])
    {
		joint = (cpGearJoint *)cpGearJointNew(aub, alb, 0.0f, 1.0f);
		//ej->maxForce = maxJointForce;
		cpSpaceAddConstraint(sp, (cpConstraint *)joint);
	}
	
	return self;
}


@end
